Use AC_PATH_TOOL to find build tools.
authorMichał Górny <mgorny@gentoo.org>
Thu, 12 Jun 2014 15:27:53 +0000 (17:27 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 20 Jul 2014 05:41:03 +0000 (01:41 -0400)
This improves support for cross-compilation & multilib on Gentoo, where
tools proper for target arch/ABI are prefixed with CHOST.

https://bugzilla.gnome.org/show_bug.cgi?id=731582

configure.ac

index df5dbea8f43745ae89dbc8880076fcf6a5f20ee2..d959ddec714c131bfab7fadfde081f6f167b49de 100644 (file)
@@ -228,7 +228,7 @@ LT_OUTPUT
 AC_SYS_LARGEFILE
 
 AM_PROG_AS
-AC_PATH_PROG(NM, nm, nm)
+AC_PATH_TOOL(NM, nm, nm)
 
 AC_MSG_CHECKING([for some Win32 platform])
 case "$host" in
@@ -1444,7 +1444,7 @@ AC_ARG_ENABLE(cups,
 if test "x$enable_cups" = "xno"; then
   AM_CONDITIONAL(HAVE_CUPS, false)
 else
-  AC_PATH_PROG(CUPS_CONFIG, cups-config, no)
+  AC_PATH_TOOL(CUPS_CONFIG, cups-config, no)
   if test "x$CUPS_CONFIG" = "xno"; then
     if test "x$enable_cups" = "xauto"; then
       AM_CONDITIONAL(HAVE_CUPS, false)